package com.lb.design.pattern.stratery;

import org.springframework.stereotype.Component;

@Component
public class WechatPayStrategy implements PaymentStrategy {
    @Override
    public String getType() {
        return "wechat";
    }

    @Override
    public void pay(double amount) {
        System.out.println("使用微信支付：" + amount + " 元");
    }
}